package com.chinda.modules.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.chinda.common.page.RPage;
import com.chinda.modules.sys.qo.SysRoleMenuQO;
import com.chinda.modules.sys.dao.SysRoleMenuDao;
import com.chinda.modules.sys.entity.SysRoleMenuEntity;
import com.chinda.modules.sys.service.SysRoleMenuService;


/**
 * 角色与菜单对应关系
 *
 * @author chinda
 * @date 2021-06-16 05:52:51
 */
@Service("sysRoleMenuService")
@Transactional(readOnly = true, rollbackFor = Exception.class)
public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuDao, SysRoleMenuEntity> implements SysRoleMenuService {

    /**
     * 获取分页信息
     *
     * @param qo
     * @return
     */
    @Override
    public RPage page(SysRoleMenuQO qo) {
        return new RPage(page(qo.getPage(), qo.getQueryWrapper()));
    }

}